package com.hsmpay.mobile.service.other.impl;

import com.hsmpay.common.service.impl.BaseServiceSupport;
import com.hsmpay.mobile.dao.other.HelpDao;
import com.hsmpay.mobile.pojo.other.Help;
import com.hsmpay.mobile.service.other.HelpService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 用户帮助服务类
 *
 * @author Steven
 */
@Service("helpService")
public class HelpServiceImpl extends BaseServiceSupport<Help, Long> implements HelpService<Help, Long> {
    @Resource(name = "helpDao")
    private HelpDao<Help, Long> helpDao;

    /**
     * 获取某个前端角色下的最大Version
     *
     * @param roleId
     * @return
     * @throws Exception
     */
    public int getMaxVersion(Long terminalTypeId, Long roleId) throws Exception {
        return helpDao.getMaxVersion(terminalTypeId, roleId);
    }
}
